﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace JCPogi.Core {
    public class PerformCommandContext {

        public PerformCommandContext(Action<string> onPublishUpdate)
            : this(onPublishUpdate, null) { }


        public PerformCommandContext(Action<string> onPublishUpdate, DoWorkEventArgs workerArgs) {
            CommandWorkerArgs = workerArgs ?? new DoWorkEventArgs(null) { Cancel = false };
            OnPublishUpdate = onPublishUpdate;
        }

        public DoWorkEventArgs CommandWorkerArgs { get; private set; }

        public Action<string> OnPublishUpdate { get; private set; }

    }
}
